#!/usr/bin/env node

const chalk = require("chalk");
chalk.level = 2;

const {diguiFolder} = require('./libs');
var argv = require('yargs')
.usage('Usage: tre [path] ')
  .example('tre ./', '当前目录树型结构输出')
  .help('h')
  .alias('h', 'help')
  .epilog('copyright 2021')
  .argv;


//遍历所有的目录

let currentFolder = argv._[0] ? argv._[0] : "./"; 
console.log(`${chalk.white("查找路径: "+ currentFolder)}`)
diguiFolder(currentFolder, 1);





